package com.wangshidai.t1;

import jdk.nashorn.internal.runtime.Scope;

import java.io.IOException;
import java.net.Socket;

public class ClientDemo {




    public static void main(String[] args)
    {
        try {
            Socket socket=new Socket("127.0.0.1",9999);
            System.out.println("服务器连接成功");
        } catch (IOException e) {
            System.out.println("服务器连接失败！");
            e.printStackTrace();
        }
    }

}
